<!--Deprecated-->
<template>
  <div style="width:100%;height:100%">
    <div class="tableHeader">
      <div class="column1">未覆盖区站11</div>
      <div class="column2">漏检次数</div>
    </div>
    <div class="tableContent">
      <div v-for="(item,index) in siteNameList" :key="index" class="tableList">
        <div
          class="tableIndex"
          :style="{ color: index == 0 ? '#FF5B5B' : index == 1 ? '#FF8855' : index == 2 ? '#FFD15C' : '#fff' }">{{ index + 1 }}</div>
        <div class="tableTitle">{{ item.siteName }}</div>
        <div class="tableNum">{{ item.num }}</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    siteNameList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {

    }
  }
}
</script>
<style lang="scss" scoped>
.tableHeader {
    height: 40px;
    background-color: rgba(0, 117, 255, 0.2);
    display: flex;
    color: #fff;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
}
.column1 {
    width: 60%;
}
.column2 {
    width: 40%;
}
.tableContent {
    height: calc(100% - 40px);
    width: 100%;
    overflow: auto;
}
.tableIndex {
    width: 15%;
    text-align: center;
}
.tableTitle {
    width: 50%;
}
.tableNum {
    width: 35%;
    text-align: center;
}
.tableList {
    height: 40px;
    line-height: 40px;
    font-size: 14px;
    display: flex;
    color: #ffffff;
}
.tableList:nth-child(even) {
    background-color: rgba(25, 77, 138, 0.2);
}
.tableContent::-webkit-scrollbar {
    width: 4px;
    background: #0f1f56 !important;
}
::-webkit-scrollbar-track {
    background-color: #0f1f56;
}
::-webkit-scrollbar-thumb {
    border: 0 !important;
    background-color: rgba(105, 115, 133, 0.3);
}
</style>
